package com.hziee.mail;

import com.hziee.mail.util.SpringUtil;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ApplicationContext;

/**
 * @author ZX
 */
@EnableCaching
@SpringBootApplication
public class MailApplication {

    public static void main(String[] args) {
//        SpringApplication.run(MailApplication.class, args);
        ApplicationContext applicationContext =
                SpringApplication.run(MailApplication.class, args);
        SpringUtil.setApplicationContext(applicationContext);
        //SpringUtil.printBean();
    }

}
